//
//  LNTextView.h
//
//  Created by KuiYin on 15/11/5.
//  Copyright © 2015年 shenming. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LNTextView;
@protocol LNTextViewDelegate <UITextViewDelegate>
@optional
- (void)lnTextView:(LNTextView *)lnTextView changedHeight:(CGFloat)height;
@end

@interface LNTextView : UITextView

@property (nonatomic,copy) NSString *placeholder; // 提示语
@property (nonatomic,strong) UIColor *placeholderColor; // 提示语颜色
@property (nonatomic,weak) id<LNTextViewDelegate> lnDelegate;

/**
 *  用来设置宽度和最大高度
 *  使用这个方法时，frame会使用此width
 */
- (instancetype)initWithWidth:(CGFloat)width maxHeight:(CGFloat)maxHeight;
@end
